@keyframes preloader-outside {
  0% {
    -webkit-transform: scale(0, 0);
    -moz-transform: scale(0, 0);
    -ms-transform: scale(0, 0);
    -o-transform: scale(0, 0);
    transform: scale(0, 0);
  }
  100% {
    -webkit-transform: scale(1, 1);
    -moz-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    -o-transform: scale(1, 1);
    transform: scale(1, 1);
  }
}

@keyframes preloader-inside {
  0% {
    -webkit-transform: scale(0, 0);
    -moz-transform: scale(0, 0);
    -ms-transform: scale(0, 0);
    -o-transform: scale(0, 0);
    transform: scale(0, 0);
  }
  30% {
    -webkit-transform: scale(0, 0);
    -moz-transform: scale(0, 0);
    -ms-transform: scale(0, 0);
    -o-transform: scale(0, 0);
    transform: scale(0, 0);
  }
  100% {
    -webkit-transform: scale(1, 1);
    -moz-transform: scale(1, 1);
    -ms-transform: scale(1, 1);
    -o-transform: scale(1, 1);
    transform: scale(1, 1);
  }
}

.preloader {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35vw;
  height: 35vw;
  max-width: 200px;
  max-height: 200px;
  padding: 10px;

  &__container {
    width: 100%;
    height: 100%;
    position: relative;
  }

  &__round,
  &__round::after,
  &__round::before {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
  }

  &__round {
    background: black;
  }

  &__round::after {
    content: '';
    background: #d905a0;
    animation: preloader-outside 1s ease-in-out infinite;
  }

  &__round::before {
    z-index: 1;
    content: '';
    background: rgb(169, 218, 7);
    animation: preloader-inside 1s ease-in-out infinite;
  }

  @media (max-width: 320px) {
    & {
      padding: 2vw;
      width: 55vw;
      height: 55vw;
    }
  }
}
